package com.atguigu.service;

import com.atguigu.base.BaseService;
import com.atguigu.entity.House;
import com.atguigu.vo.HouseQueryVo;
import com.atguigu.vo.HouseVo;
import com.github.pagehelper.PageInfo;

/**
 * @PACKAGE_NAME: com.atguigu.service
 * @CLASSNAME: HouseService
 * @AUTHOR: zhangsan
 * @DATE: 2024/4/22 15:31
 * @SINCE 17.0.7
 * @DESCRIPTION: HouseService 房源管理
 */
public interface HouseService extends BaseService<House> {
    Integer updateHouseStatus(Long id, Integer status);

    /**
     * 通过id获取房源,通过多表联查,获取到对应字典表中字段名字
     * @param id
     * @return
     */
    House getDictNameById(Long id);

    /**
     * 通过前端前台首页传递过来的查询条件查询房源
     * @param pageNum
     * @param pageSize
     * @param houseQueryVo
     * @return
     */
    PageInfo<HouseVo> findListPage(Integer pageNum, Integer pageSize, HouseQueryVo houseQueryVo);
}
